

namespace ThingsGateway.Foundation.Rpc.JsonRpc
{
    /// <summary>
    /// JsonRpc响应器
    /// </summary>
    public class JsonResponseContext
    {
        /// <summary>
        /// jsonrpc
        /// </summary>
        public string jsonrpc { get; set; }

        /// <summary>
        /// result
        /// </summary>
        public object result { get; set; }

        /// <summary>
        /// error
        /// </summary>
        public error error { get; set; }

        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
    }

    /// <summary>
    /// 错误
    /// </summary>
#pragma warning disable IDE1006 // 命名样式
#pragma warning disable CS8981 // 命名样式

    public class error
#pragma warning restore IDE1006 // 命名样式
#pragma warning restore CS8981 // 命名样式
    {
        /// <summary>
        /// code
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// message
        /// </summary>
        public string message { get; set; }
    }
}